import $http from "../assets/js/http";

// 区域查询
export async function area_select({ AR_number, AR_name, page }) {
  return $http.post("Building/Building/area_select", {
    AR_number,
    AR_name,
    page
  });
}

// 区域修改
export async function area_update({
  AR_name,
  AR_number,
  AR_location,
  AR_createman,
  AR_date,
  AR_remarks
}) {
  return $http.post("Building/Building/area_update", {
    AR_name,
    AR_number,
    AR_location,
    AR_createman,
    AR_date,
    AR_remarks
  });
}

// 区域新增
export async function area_insert({
  AR_name,
  AR_location,
  AR_createman,
  AR_remarks
}) {
  return $http.post("Building/Building/area_insert", {
    AR_name,
    AR_location,
    AR_createman,
    AR_remarks
  });
}

// 区域删除
export async function area_delete(AR_number) {
  return $http.post("Building/Building/area_delete", {
    AR_number
  });
}

// //获取宿舍楼编号, 名称;
// export function getArea() {
//   return $http.post("Building/Building/");
// }
